package decorator.cofforbar;

import decorator.coffor.Decaf;
import decorator.coffor.LongBlack;
import decorator.decorator.Milk;
import decorator.decorator.Soy;

public class CofferBar {
    public static void main(String[] args) {
        Drink drink = null;

        drink = new LongBlack();

        System.out.println("price:"+drink.getPrice());
        System.out.println("desc:"+drink.getDescription());


        System.out.println("******************");

        drink = new LongBlack();
        drink = new Milk(drink);
        drink = new Soy(drink);

        System.out.println("price:"+drink.cost());
        System.out.println("desc:"+drink.getDescription());

    }
}
